/*
 * @Author       : Hejh(3010733382@qq.com)
 * @Version      : V1.0
 * @Date         : 2024-01-29 12:45:29
 * @Description  : 考试相关的一些类型
 */
import type { PageRes } from './commom'

export interface ExamReq {
  page?: number
  pageSize?: number
  pid?: string
}

// Exam返回实体
export interface ExamRes {
  id: string
  name: string
  pid:string
  price?:string
  pic?:string
  ParentExam:any
  createTime:string
}

// 分页Exam返回实体
export type ExamPageRes = PageRes<ExamRes>

// 考试添加请求实体类型
export interface ExamCreateReq {
  name: string
  pid:string
  price?:string
  pic?:string
  
}

// 考试修改请求实体
export interface ExamUpdateReq {
  examId?: string
  name: string
  pid:string
  price?:string
  pic?:string
}

export type ExamRowData = ExamRes
